﻿using System;
using mebc2.reflection;

namespace mebc2.reflection
{
    public enum WireKinds
    {
        Input,
        Output,
        Flow
    }


    public class Wire
    {
        public WireKinds Kind 
        { 
            get
            {
                if (From == null) return WireKinds.Input;
                if (To == null) return WireKinds.Output;
                return WireKinds.Flow;
            } 
        }

        public Type Type { get; internal set; }
        public MetaData From { get; internal set; }
        public MetaData To { get; internal set; }
    }
}